package com.hyjoy.service;

import com.hyjoy.entity.PageBean;
import com.hyjoy.entity.Product;

import java.util.List;

/**
 *
 */
public interface ProductService {

    List<Product> findHot() throws Exception;

    List<Product> findNew() throws Exception;

    Product getById(String pid) throws Exception;

    PageBean<Product> findByPage(int pageNumber, int pageSize, String cid) throws Exception;

    List<Product> findAll() throws Exception;

    void save(Product p) throws Exception;
}